<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>类选择器</title>
    <style type="text/css">
        .css1{
            color: #ffa54f;
        }
        .css2{
            color: #b74bff;
        }
    </style>
</head>
<body>
<div class = "css1">小勤学CSS</div>
<div class = "css1">小勤学CSS~</div>
<p class = "css2">hello,world</p>
</body>
</html>